<template>
	<view class="content">
		
		<view class="title fs18 C333">违规举报详情</view>
		<view class="process">
			<view class="flexsb processTitle">				                  																					                    
				<view :class="[(inform_state >=1) ? 'processActive' : '']" class="processActive">填写举报内容</view>
				<view :class="[(inform_state >=2) ? 'processActive' : '']" class="">平台审核</view>
				<view :class="[(inform_state >=3) ? 'processActive' : '']" class="">举报完成</view>				
			</view>

			<view v-if="inform_state ==1"  style=" position: relative;z-index: 0;top: 40upx;width: 650upx;height: 2upx;margin: 0 auto;" class="progress-box">
				<progress activeColor="#ff4300" percent="0" stroke-width="2" />
			</view>
			<view v-if="inform_state ==2"  style=" position: relative;z-index: 0;top: 40upx;width: 650upx;height: 2upx;margin: 0 auto;" class="progress-box">
				<progress activeColor="#ff4300" percent="50" stroke-width="2" />
			</view>
			<view v-if="inform_state ==3"  style=" position: relative;z-index: 0;top: 40upx;width: 650upx;height: 2upx;margin: 0 auto;" class="progress-box">
				<progress activeColor="#ff4300" percent="100" stroke-width="2" />
			</view>
		
			<view v-if="inform_state ==1" class="flexsb circles">
				<view class="">
					<image v-if="true" style="width: 40upx;height: 40upx;" src="/static/images/login/xuanzhong-icon.png" mode=""></image>
					<image v-if="false" style="width: 40upx;height: 40upx;" src="/static/images/new_tousugg2.jpg" mode=""></image>
				</view>
				<view class="">
					<image v-if="false" style="width: 40upx;height: 40upx;" src="/static/images/login/xuanzhong-icon.png" mode=""></image>
					<image v-if="true" style="width: 40upx;height: 40upx;" src="@/static/images/new_tousugg2.jpg" mode=""></image>
				</view>
				<view class="">
					<image v-if="false" style="width: 40upx;height: 40upx;" src="/static/images/login/xuanzhong-icon.png" mode=""></image>
					<image v-if="true" style="width: 40upx;height: 40upx;" src="@/static/images/new_tousugg2.jpg" mode=""></image>
				</view>
			</view>
			<view v-if="inform_state ==2" class="flexsb circles">
				<view class="">
					<image v-if="true" style="width: 40upx;height: 40upx;" src="/static/images/login/xuanzhong-icon.png" mode=""></image>
					<image v-if="false" style="width: 40upx;height: 40upx;" src="@/static/images/new_tousugg2.jpg" mode=""></image>
				</view>
				<view class="">
					<image v-if="true" style="width: 40upx;height: 40upx;" src="/static/images/login/xuanzhong-icon.png" mode=""></image>
					<image v-if="false" style="width: 40upx;height: 40upx;" src="../../static/images/new_tousugg2.jpg" mode=""></image>
				</view>
				<view class="">
					<image v-if="false" style="width: 40upx;height: 40upx;" src="/static/images/login/xuanzhong-icon.png" mode=""></image>
					<image v-if="true" style="width: 40upx;height: 40upx;" src="@/static/images/new_tousugg2.jpg" mode=""></image>
				</view>		
			</view>
			
			<view v-if="inform_state ==3" class="flexsb circles">
				<view class="">
					<image v-if="true" style="width: 40upx;height: 40upx;" src="/static/images/login/xuanzhong-icon.png" mode=""></image>
					<image v-if="false" style="width: 40upx;height: 40upx;" src="@/static/images/new_tousugg2.jpg" mode=""></image>
				</view>
				<view class="">
					<image v-if="true" style="width: 40upx;height: 40upx;" src="/static/images/login/xuanzhong-icon.png" mode=""></image>
					<image v-if="false" style="width: 40upx;height: 40upx;" src="@/static/images/new_tousugg2.jpg" mode=""></image>
				</view>
				<view class="">
					<image v-if="true" style="width: 40upx;height: 40upx;" src="/static/images/login/xuanzhong-icon.png" mode=""></image>
					<image v-if="false" style="width: 40upx;height: 40upx;" src="@/static/images/new_tousugg2.jpg" mode=""></image>
				</view>
			</view>							
		</view>
		
		<view class="tousuContent">
			<!-- <view class="title2 fs18 C333">投诉信息</view> -->
			<view class="flex0 commonLi">
				<view style="width: 160upx;" class="fs18 C333">投诉信息:</view>
				<view class="fs18 C999">{{inform_info.inform_content}}</view>				
			</view>
			<view class="flex0 commonLi">
				<view style="width: 160upx;" class="fs18 C333">被举报商家:</view>
				<view class="fs18 C999">{{goods_info.store_name}}</view>				
			</view>
			<view class="flex0 commonLi">
				<view style="width: 160upx;" class="fs18 C333">相关商品：</view>
				<view class="fs18 C999">
					<image style="width:85upx;height: 85upx;" :src="goods_info.goods_image" mode=""></image>
					<view style="width: 530upx;" class="twoline">{{goods_info.goods_name}}</view>				
				</view>				
			</view>
			<view class="flex0 commonLi">
				<view style="width: 160upx;" class="fs18 C333">举报类型：</view>
				<view class="fs18 C999">{{subject_info.inform_subject_type_name}}</view>				
			</view>
			<view class="flex0 commonLi">
				<view style="width: 160upx;" class="fs18 C333">举报主题：</view>
				<view class="fs18 C999">{{subject_info.inform_subject_content}}</view>				
			</view>
			<view class="flex0 commonLi">
				<view style="width: 160upx;" class="fs18 C333">举报图片：</view>
				<view >
					<!-- <image style="width:130upx;height: 130upx;" src="../../static/images/wgjbLi1.png" mode=""></image>					 -->
					<image v-if="inform_info.inform_pic1" style="width:130upx;height: 130upx;" :src="inform_info.inform_pic1" mode=""></image>					
					<image v-if="inform_info.inform_pic2" style="width:130upx;height: 130upx;" :src="inform_info.inform_pic2" mode=""></image>					
					<image v-if="inform_info.inform_pic3" style="width:130upx;height: 130upx;" :src="inform_info.inform_pic3" mode=""></image>					
				</view>				
			</view>

		</view>
		
		<!-- <view class="bottom">
			<view :class="[(active2flag == index)?'active2':'']" @click="tab2(index,item.toUrl)" v-for="(item,index) in bottomBtn" :key="index">				
				<image :src="active2flag == index ? item.img2 :item.img1" mode=""></image>
				<view :class="[(active2flag == index) ? 'active2':'']">
					{{item.name}}
				</view>
			</view>
		</view>	 -->	
	</view>
	
	
</template>

<script>
	export default {
		data(){
			return{
				inform_id:5,
				inform_info:{},
				inform_state:1,
				subject_info:{},
				goods_info:{},
				lis:[],
				id:'',
				active2flag:0,
			
			}
		},
		onLoad(options) {
			console.log(options.inform_id)
			this.inform_id=options.inform_id;
			this.getLis();
		},
		onShow() {
			
		},
		methods:{
			getLis(){
				let that = this;
				this.$util.request({
					url: '/mobile/index.php?act=member_inform&op=inform_info',
					method: 'get',
					data: {
						"inform_id":that.inform_id
					},
				}).then((res)=> {
					console.log(res)						
					this.inform_info=res.datas.inform_info
					this.goods_info=res.datas.goods_info
					this.subject_info=res.datas.subject_info
					this.inform_state=res.datas.inform_info.inform_state
					
				})
			},
			tab2(index,url){
				this.active2flag=index
				console.log(this.active2flag);
				uni.switchTab({
					url:url
				})
			}
		}
	}
</script>

<style>
	.titleNview-placing {
		height: var(--status-bar-height);
		box-sizing: content-box;
	 }
	view{
		box-sizing: content-box;		
	}
	uni-page-body {
		background-color: #FFFFFF;
		color: rgb(102, 102, 102);
	}
	.titleNview-placing {
		height: var(--status-bar-height);
		box-sizing: content-box;
	 }
	.lh20{
		line-height: 20upx;
		height: 20upx;
	}
	.lh25{
		line-height: 25upx;
	}
	.lh30{
		line-height: 30upx;
	}
	.lh35{
		line-height: 35upx;
	}
	.lh40{
		line-height: 40upx;
	}
	.lh45{
		line-height: 45upx;
	}
	.lh50{
		line-height: 50upx;
	}
	.lh80{
		line-height: 80upx;
	}
	.C000{
		color: #000000;
	}
	.Ce13d97{
		color: #ff4300;
	}
	.Cfe0000{
		color: #ff4300;
	}
	.Cc06{
		color: #ff4300;
	}
	.mt55mb30{
		margin-top: 55upx;
		margin-bottom: 30upx;
	}
	.Cfff{
		color: #FFFFFF;
	}
	
	.flex{		
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-content: space-between;
	}
	.paddingL20{
		padding-left: 20upx;
	}
	.C999{
		color:#999 ;
	}
	.Cff0101{
		color:#ff0101 ;
	}
	.Cc00251{
		color: #c00251;
	}
	.strick{
		text-decoration: line-through;
	}
	.Cfe0000{
		color: #ff4300;
	}
	.line1{
		width: 430upx;
	}
	.hide{
		display: none;
	}
	.marginB20{
		margin-bottom: 20upx;
	}
	.oneLine{
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.twoline{
	   overflow : hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.pl20{
		padding-left: 20upx;
	}
	.positionT{
		position: relative;
		top: 50upx;
	}
	.paddingB15{
		padding-bottom: 15upx;
	}
	.borderB{
		border-bottom: 1px solid #f4f4f6;
	}
	.borderT{
		border-top: 1px solid #f4f4f6;
	}
	.gl{
		position: absolute;
		right: 30upx;
	}
	.pr30{
		padding-right: 30upx;
	}
	.C333{
		color: #333333;
	}
	.C666{
		color: #666666;
	}
	.Cf00{
		color: #ff0000;
	}
	
	.bold{
		font-weight: bold;
	}
	.C1d1d1d{
		color:#1d1d1d ;
	}
	.fl{
		float: left;
	}
	.fr{
		float: right;
	}
	.tac{
		text-align: center;
	}
	.Ce5258e{
		color: #e5258e;
	}
	.Cccc{
		color: #CCCCCC;
	}
	.Cf7881c{
		color: #f7881c;
	}
	uni-page-body {
		background-color: #FFFFFF;
		color: rgb(102, 102, 102);
	}		
	.fs30{
		/* font-size: 30upx */
		font-size: 45upx
	}
	.fs26{
		font-size:39upx
		/* font-size: 26upx */
	}
	.fs12{
		font-size: 18upx
		/* font-size: 12upx */
	}
	.fs16{
		font-size: 24upx
		/* font-size: 16upx */
	}
	.fs14{
		font-size: 21upx
		/* font-size: 14upx */
	}
	.fs15{
		font-size: 22.5upx
		/* font-size: 15upx */
	}
	.fs27{
		font-size: 40.5upx
		/* font-size: 27upx */
	}
	.fs18{
		font-size: 27upx
		/* font-size: 18upx */
	}
	.fs28{
		font-size: 42upx
		/* font-size: 28upx */
	}
	.fs10{
		font-size: 15upx
		/* font-size: 10upx */
	}
	.fs30{
		font-size: 45upx
		/* font-size: 28upx */
	}
	.fs36{
		font-size: 54upx
		/* font-size: 28upx */
	}
	
	.fs24{
		font-size: 36upx
		/* font-size: 24upx */
	}
	.fs20{
		font-size:30upx
		/* font-size: 20upx */
	}
	.fs22{
		font-size:33upx
		/* font-size: 22upx */
	}
	.fs21{
		font-size: 31.5upx
		/* font-size: 21upx */
	}	
	.flexsb{
		display: flex;
		justify-content: space-between;
	}
	.plr20{
		padding: 0 20upx;
	}
	.plr10{
		padding: 0 10upx;
	}
	.f6f4f5{
		background-color: #fff;
	}	
	.Cf74d0f{
		color: #f74d0f;
	}
	.C2dc34d{
		color: #2dc34d;
	}
	.mt20{
		margin-top: 20upx;
	}
	.ti2{
		text-indent: 2em;
	}
	
	
	.content{
		min-height: 100vh;
		background-color: #f6f4f5;
	}
	
	.bottom{
		box-sizing: border-box;
		padding: 0 10upx;
		background-color: #FFFFFF;
		position: fixed;
		z-index: 99999999999;
		left: 0;
		bottom: 0;
		height: 98upx;
		width: 100%;
		box-shadow: 0upx -1upx 10upx rgba(0,0,0,0.8);
		display: flex;
		flex-direction: row;
		justify-content: space-around;
	}
	.bottom view{
		font-size: 27upx;
		color: #666;
		text-align: center;
		margin-top: -4upx;
	}
	.bottom view.active2{
		color: #ff4300;
	}
	.bottom image{
		position: relative;
		top: 15upx;
		width: 48upx;
		height: 48upx;
	}
	.title{
		padding-left: 20upx;
		background-color: #fff;
		padding-top: 30upx;
		border-bottom: 1upx solid #f1f1f1;
	}
	.process{		
		padding: 30upx 20upx;
		background-color: #fff;
		box-sizing: border-box;
	}
	.circles{
		margin-top: 20upx;
		padding: 0 30upx;
	}
	.line{
		position: relative;
		z-index: 0;
		top: 40upx;
		width: 650upx;
		height: 2upx;
		margin: 0 auto;
	}
	.processTitle view.processActive{
		color: #ff4300;
	}
	.tousuContent{
		box-sizing: border-box;
		margin-top: 20upx;
		background-color: #fff;
	}
	.title2{
		padding-left: 20upx;
		height: 70upx;
		line-height: 90upx;
		padding-bottom: 15upx;
	}
	.commonLi{
		border-top: 1upx solid #f4f4f4;
		padding: 20upx;
	}
	.commonLi image+image{
		margin-left: 33upx;
	}
	.flex0{
		display: flex;
	}
</style>

